# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-dython
pkgver=0.7.5
pkgrel=1
pkgdesc="A set of data tools in Python"
url="https://github.com/shakedzy/dython"
arch="noarch"
license="MIT"
depends="
	py3-matplotlib
	py3-numpy
	py3-pandas
	py3-psutil
	py3-scikit-learn
	py3-scipy
	py3-seaborn
	python3
	"
checkdepends="py3-hypothesis py3-pytest py3-pytest-black"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/shakedzy/dython/archive/v$pkgver.tar.gz"
builddir="$srcdir/dython-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest -k 'not nominal and not test_associations and not test_associations_parallel'
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
c59406f4914d7c6c2ba7439ddb02e79641520696ae3d5b684388c982e8f67fac98ac9a837f65cb4d07003d6979702e0edb7b9fa9b3e5ae80296cb36b8743b3b2  py3-dython-0.7.5.tar.gz
"
